package scala.caseClass

sealed abstract class LogMessage

//case
case class StringMessage(mes: String) extends LogMessage
case class ExceptionMessage(mes: Throwable) extends LogMessage
case class BothMessage(mes1: String, mes2: Throwable) extends LogMessage

